package website.lhc.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/1/4 16:36
 * @version: 1.0
 */
@Slf4j
public class DecoratorTest {
    public static void main(String[] args) {
        Shape circle = new Circle();
        ShapeDecorator redCircle = new RedShapeDecorator(new Circle());
        ShapeDecorator redRectangle = new RedShapeDecorator(new Rectangle());
        System.out.println("Circle with normal border");
        circle.draw();


        log.info("\nCircle of red border");
        redCircle.draw();

        log.info("\nRectangle of red border");
        redRectangle.draw();

    }
}
